CXX = g++
CXXFLAGS=-I/usr/local/include/boost -I../Common -c -g -fPIC
ALLOBJECTS = stdafx.o ClientCallbackGame.o GateServer.o Peer.o PeerManager.o ServerCallbackGate.o

GateServer : $(ALLOBJECTS)
	$(CXX) -L/usr/local/lib/ -L../Common -lCommon  -g -o GateServer $(ALLOBJECTS) -lboost_thread -lpthread -lboost_system -lstdc++ 

stdafx.o : stdafx.cpp
	$(CXX) $(CXXFLAGS) stdafx.cpp
ClientCallbackGame.o : ClientCallbackGame.cpp
	$(CXX) $(CXXFLAGS) ClientCallbackGame.cpp
GateServer.o : GateServer.cpp
	$(CXX) $(CXXFLAGS) GateServer.cpp
Peer.o : Peer.cpp
	$(CXX) $(CXXFLAGS) Peer.cpp
PeerManager.o : PeerManager.cpp
	$(CXX) $(CXXFLAGS) PeerManager.cpp
ServerCallbackGate.o : ServerCallbackGate.cpp
	$(CXX) $(CXXFLAGS) ServerCallbackGate.cpp
	
.PHONY :  clean
clean :
	-rm *.o
	-rm GateServer
.PHONY : install
install :
